#!/bin/bash
OK=0
WARN=1
CRITICAL=2
UNKNOWN=3
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"

OK_name=''
Fail_name=''
Judge=0

if [ -d /pnfs/ihep.ac.cn/data/ops ] 
then
        Ok_name='pnfs'
#       exit $OK
else
        Judge=1
        Fail_name='pnfs'
#       exit $CRITICAL
fi

if [ $Judge -eq 1 ]
then
        echo "$Fail_name  wrong"
        exit $CRITICAL
else
        echo " $Ok_name are OK "
        exit $OK
fi
